<?php

namespace app\load\service;

use app\load\loadModel\TypeModel;
use think\db\BaseQuery;
use think\Exception;

/**
 * 类型服务
 */
class FlowTypeService
{

    /**
     * 列表
     * @return array|BaseQuery[]
     * @throws  Exception
     */
    public function list($where, $filed): array
    {
        return TypeModel::FlowType()->where($where)
            ->field($filed)
            ->select()
            ->toArray();
    }


}